Matthias Clasen [Thu, 28 May 2020 12:52:55 +0000 (08:52 -0400)]
shortcut controller: Fix mnemonic cycling
Iterate the shortcuts we found in order, not in
reverse. Otherwise, we always end up activating
the last_selected one, since it is last in the
list.
This broke in
fb9b54d4b209afc when a list was
turned into an array.
Matthias Clasen [Thu, 28 May 2020 12:32:03 +0000 (08:32 -0400)]
widget-factory: Add a mnemonic conflict
Make Alt-e the mnemionic for both the Edit menu
and the Select button on page 2. This shows that
mnemonic cycling doesn't currently work, we always
open the menu.
Yuri Chornoivan [Thu, 28 May 2020 10:05:11 +0000 (10:05 +0000)]
Update Ukrainian translation
Emmanuele Bassi [Thu, 28 May 2020 09:11:43 +0000 (09:11 +0000)]
Merge branch 'fix_typos' into 'master'
Fix minor typos
See merge request GNOME/gtk!1974
Yuri Chornoivan [Thu, 28 May 2020 08:00:03 +0000 (11:00 +0300)]
Fix minor typos
Matthias Clasen [Thu, 28 May 2020 03:58:02 +0000 (03:58 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
a11y: Widgets have children
See merge request GNOME/gtk!1973
Matthias Clasen [Thu, 28 May 2020 02:56:33 +0000 (22:56 -0400)]
a11y: Widgets have children
This brings back some of what we lost when
GtkContainerAccessible went away.
Matthias Clasen [Thu, 28 May 2020 00:55:42 +0000 (00:55 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!1972
Matthias Clasen [Thu, 28 May 2020 00:05:26 +0000 (20:05 -0400)]
aboutdialog: Stop overriding show()
This is entirely unnecessary.
Matthias Clasen [Thu, 7 May 2020 02:56:28 +0000 (22:56 -0400)]
volumebutton: Enable the tooltips
Little point in having a query-tooltip handler if
we don't make sure ::query-tooltip is emitted.
Matthias Clasen [Thu, 7 May 2020 02:52:20 +0000 (22:52 -0400)]
volumebutton: Remove broken a11y code
The accessible of a button is not an AtkImage,
so whatever this code was trying to do isn't
working. Remove it.
Matthias Clasen [Wed, 27 May 2020 23:00:18 +0000 (19:00 -0400)]
tooltips: Fix a line wrap mishap
We don't want wrapping labels to cause tooltips to
have excessive height, so we need to set a reasonable
value for width-chars, without forcing short tooltips
into a full line length. Also be careful to respect
preexisting line breaks (we have such examples in
widget factory).
Emmanuele Bassi [Wed, 27 May 2020 16:50:55 +0000 (16:50 +0000)]
Merge branch 'ebassi/overlay-docs' into 'master'
Ebassi/overlay docs
See merge request GNOME/gtk!1970
Matthias Clasen [Wed, 27 May 2020 16:36:18 +0000 (16:36 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Add to the docs README
See merge request GNOME/gtk!1971
Matthias Clasen [Wed, 27 May 2020 14:55:15 +0000 (10:55 -0400)]
Add to the docs README
Mention markdown syntax and gtk-doc additions.
Emmanuele Bassi [Wed, 27 May 2020 14:46:19 +0000 (15:46 +0100)]
Remove spurious annotations
Boolean values are not nullable, and have no ownership to transfer.
Emmanuele Bassi [Wed, 27 May 2020 14:45:38 +0000 (15:45 +0100)]
Add missing documentation for GtkOverlayLayout
We're missing the documentation for the constructor, and for the child
properties.
Emmanuele Bassi [Wed, 27 May 2020 14:10:40 +0000 (14:10 +0000)]
Merge branch 'ebassi/howto-docs' into 'master'
Ebassi/howto docs
See merge request GNOME/gtk!1969
Emmanuele Bassi [Wed, 27 May 2020 12:44:22 +0000 (13:44 +0100)]
docs: Link the documentation guidelines
From the coding style.
Emmanuele Bassi [Wed, 27 May 2020 12:26:39 +0000 (13:26 +0100)]
Add the beginnings of a docs contribution guide
We have one for the whole project, but the documentation should have a
proper introduction and a proper style guide.
Emmanuele Bassi [Tue, 26 May 2020 17:21:44 +0000 (18:21 +0100)]
Add myself to more sections
Emmanuele Bassi [Tue, 26 May 2020 17:20:21 +0000 (18:20 +0100)]
docs: Remove last two steps from the release howto
Drop the GTK list announcements, as we don't have lists any more.
The GTK website updates itself automatically, these days.
Emmanuele Bassi [Tue, 26 May 2020 17:19:53 +0000 (18:19 +0100)]
docs: Turn coding style into a markdown document
It was mostly one already, just needed some minor fixes.
Timm Bäder [Wed, 27 May 2020 10:06:53 +0000 (10:06 +0000)]
Merge branch 'carlosgc/fix-build' into 'master'
build: add gtkoverlaylayout.h to the list of public headers
See merge request GNOME/gtk!1968
Carlos Garcia Campos [Wed, 27 May 2020 09:05:12 +0000 (11:05 +0200)]
build: add gtkoverlaylayout.h to the list of public headers
GtkOverlayLayout is now public but the header is not installed.
Matthias Clasen [Wed, 27 May 2020 03:54:59 +0000 (03:54 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!1967
Matthias Clasen [Wed, 27 May 2020 02:23:43 +0000 (22:23 -0400)]
win32: Drop an unsed variable
Matthias Clasen [Wed, 27 May 2020 00:52:41 +0000 (20:52 -0400)]
gdk: Drop no-longer-used documentation
Thread support is gone, and we don't have that
section in the docs anymore.
Matthias Clasen [Wed, 27 May 2020 00:35:13 +0000 (20:35 -0400)]
gdk: Remove an unused texture api
gdk_gl_texture_from_surface wasn't used anywhere,
so lets drop it.
Matthias Clasen [Wed, 27 May 2020 00:31:09 +0000 (20:31 -0400)]
gdk: Drop some unused event queue functions
Matthias Clasen [Wed, 27 May 2020 00:16:15 +0000 (20:16 -0400)]
gdk: Clean up gdkinternals.h
Remove definitions that are just leftovers with
nothing behind them anymore.
Matthias Clasen [Wed, 27 May 2020 00:13:13 +0000 (20:13 -0400)]
gdk: Drop _gdk_windowing_args
We are no longer parsing commandline args, so this
was a useless leftover that was still defined in
the win32 backend.
Matthias Clasen [Wed, 27 May 2020 00:05:11 +0000 (20:05 -0400)]
docs: Drop a mention of gdk_window_move()
We don't have windows anymore, and they don't move
anymore either.
Matthias Clasen [Wed, 27 May 2020 00:04:40 +0000 (20:04 -0400)]
gdk: Move the GdkGeometry typedef to gdkinternals.h
The struct was already there, so this is just a leftover.
Matthias Clasen [Tue, 26 May 2020 23:45:01 +0000 (19:45 -0400)]
gdk: Drop the GdkByteOrder enum
Move it to the private gdkvisual-x11.h header, which
is the only place where its used.
Matthias Clasen [Tue, 26 May 2020 23:39:31 +0000 (19:39 -0400)]
gdk: Drop the GdkEventMask enum
This is not used in public api anymore.
Some of the backends still use it internally,
so keep it in gdkinternals.h for now.
Matthias Clasen [Tue, 26 May 2020 23:31:53 +0000 (19:31 -0400)]
gdk: Drop the GdkSurfaceTypeHint enum
This is not used in public api anymore.
Some of the backends still use it internally,
so keep it in gdkinternals.h for now.
Matthias Clasen [Tue, 26 May 2020 23:31:12 +0000 (19:31 -0400)]
testsuite: Drop the type-hint property from tests
No point in excluding a property that no longer
exists.
Matthias Clasen [Tue, 26 May 2020 23:30:26 +0000 (19:30 -0400)]
window: Drop an unused field
The type-hint property is gone, and nothing reads
or writes the type_hint field anymore.
Matthias Clasen [Tue, 26 May 2020 23:21:55 +0000 (19:21 -0400)]
gdk: Drop GDK_PARENT_RELATIVE
This define is not used anywhere.
Matthias Clasen [Tue, 26 May 2020 01:37:43 +0000 (21:37 -0400)]
accelgroup: Expand translator comment
Add details about the use of KP.
Matthias Clasen [Tue, 26 May 2020 02:41:37 +0000 (02:41 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #2778
See merge request GNOME/gtk!1966
Matthias Clasen [Tue, 26 May 2020 01:35:11 +0000 (01:35 +0000)]
Merge branch 'ebassi/for-master' into 'master'
Ebassi/for master
Closes #2783
See merge request GNOME/gtk!1962
Matthias Clasen [Tue, 26 May 2020 01:27:58 +0000 (21:27 -0400)]
docs: Mention shortcuts in the migration guide
Add a few paragraphs about GtkAccelGroup, GtkBindingSet
and GtkAccelMap to the migration guide.
Fixes: #2778
Matthias Clasen [Tue, 26 May 2020 00:55:26 +0000 (20:55 -0400)]
accelgroup: Drop some unused code
Matthias Clasen [Tue, 26 May 2020 00:38:16 +0000 (20:38 -0400)]
Help static analysis with an assertion
It is hard for clang to see that layouts will
always be smaller than num_layouts, so just assert
that.
Matthias Clasen [Mon, 25 May 2020 21:18:27 +0000 (17:18 -0400)]
bitmask: add an assertion
The static analysis in ci is complaining about
this, since it doesn't know that start is always
smaller than end.
Matthias Clasen [Mon, 25 May 2020 21:12:56 +0000 (17:12 -0400)]
printing: Drop a redundant assignment
This showed up as a warning in static analysis in ci.
Matthias Clasen [Mon, 25 May 2020 21:08:34 +0000 (17:08 -0400)]
docs: Mention pandoc as build dependency
Matthias Clasen [Tue, 26 May 2020 00:55:10 +0000 (00:55 +0000)]
Merge branch 'doc-chapters-markdown' into 'master'
Include markdown content, via pandoc
See merge request GNOME/gtk!1961
Matthias Clasen [Mon, 25 May 2020 22:40:09 +0000 (18:40 -0400)]
docs: Use the right python
Matthias Clasen [Mon, 25 May 2020 20:23:06 +0000 (20:23 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!1965
Matthias Clasen [Mon, 25 May 2020 16:48:10 +0000 (12:48 -0400)]
ci: Use fedora-docs for the doc build
Our doc build now uses pandoc, so use an image
that has it.
Matthias Clasen [Mon, 25 May 2020 16:45:29 +0000 (12:45 -0400)]
ci: Add a fedora-docs image
Split the fedora image into fedora-base (containing just
the packages) and fedora (adding the user setup), and add
a fedora-docs image that is adding pandoc on top of the
fedora-base image.
Matthias Clasen [Sun, 24 May 2020 18:25:25 +0000 (14:25 -0400)]
docs: Convert question index to markdown
With this, the expand_content_files list has been
completely converted to markdown files. Whats left
in content_files is man pages, and a few special
cases.
Matthias Clasen [Sun, 24 May 2020 18:20:42 +0000 (14:20 -0400)]
docs: Allow interrupted lists
We use such an interrupted, numbered list in the
q&a section, so tell pandoc to pay attention to
start numbers.
Matthias Clasen [Sun, 24 May 2020 15:42:52 +0000 (11:42 -0400)]
docs: Convert treeview and textview overview to markdown
Matthias Clasen [Sun, 24 May 2020 16:04:15 +0000 (12:04 -0400)]
docs: Allow influencing pandoc divisons
Arrange for files named section-foo.md to be turned
into docbook sections, while others get turned into
chapters. This is necessary to allow including such
content in chapters, since chapters in docbook don't
nest.
Matthias Clasen [Sun, 24 May 2020 15:12:56 +0000 (11:12 -0400)]
docs: Drop the glossary
It is very incomplete, somewhat outdated, and
we lack the resources to maintain it properly.
Matthias Clasen [Sun, 24 May 2020 15:07:45 +0000 (11:07 -0400)]
docs: Convert resources section to markdown
Matthias Clasen [Sun, 24 May 2020 14:57:52 +0000 (10:57 -0400)]
docs: Drop a long-stale file
The other_software.xml section has not been included in
the docs since 2.x, as far as I can tell. It was clearly
written before GIO existed.
Matthias Clasen [Sun, 24 May 2020 14:55:02 +0000 (10:55 -0400)]
docs: Convert platform sections to markdown
Matthias Clasen [Sun, 24 May 2020 04:22:31 +0000 (00:22 -0400)]
docs: Convert getting_started to markdown
As part of the conversion, give up on including
sources files from the examples directory, and
instead include the content directly. All include
mechanisms add complications. They were already
complicated with xml, and markdown is not making
things easier.
We already did that for fragments, and if you
make changes to these example sources, you
probably need to revise the surrounding text
anyway.
Matthias Clasen [Sun, 24 May 2020 04:08:58 +0000 (00:08 -0400)]
docs: Refresh the inspector screenshot
Matthias Clasen [Sun, 24 May 2020 04:04:36 +0000 (00:04 -0400)]
docs: Convert building, compiling, running to markdown
Matthias Clasen [Sun, 24 May 2020 01:41:15 +0000 (21:41 -0400)]
doc: Check for pandoc
Add an explicit check for pandoc, so we get a clear
error message if it is missing.
Matthias Clasen [Sun, 24 May 2020 01:32:35 +0000 (21:32 -0400)]
docs: Convert css overview to markdown
Matthias Clasen [Sun, 24 May 2020 01:33:25 +0000 (21:33 -0400)]
docs: Be more careful when expanding abbreviations
We must not expand #symbol in the middle of a url,
where it is probably a fragment identifier. Restrict
problem.
Matthias Clasen [Sat, 23 May 2020 01:56:39 +0000 (21:56 -0400)]
wip: Include markdown content, via pandoc
Use pandoc to convert freestanding markdown files to docbook for
inclusion in the generated docs, and use bits and pieces of
gtk-doc code to continue expanding typical gtk-doc abbreviations.
The new tool for markdown -> docbook is a python script called
gtk-markdown-to-docbook.
The markdown dialect is specified via a list of pandoc extension
in gtk-markdown-to-docbook. It includes header annocations,
definition lists and tables, among other things.
This commit converts the 3 overview chapters (drawing, input
handling and actions) and the migration guide to markdown
syntax. Other files that are still listed in content_files
can be converted later.
This commit adds a pandoc dependency.
Matthias Clasen [Mon, 25 May 2020 19:18:14 +0000 (15:18 -0400)]
Add GtkOverlayLayout to the docs
Matthias Clasen [Mon, 25 May 2020 18:22:10 +0000 (14:22 -0400)]
Make GtkOverlayLayout public
Keeping the layout manager type private does not
really work when it has layout child properties
that need to be usable in ui files.
Matthias Clasen [Mon, 25 May 2020 18:14:28 +0000 (14:14 -0400)]
constraint-editor: Don't use g_type_ensure
This isn't necessary if we export the get_type function.
Timm Bäder [Mon, 25 May 2020 08:36:29 +0000 (10:36 +0200)]
adwaita: move backdrop box shadows to .csd
Fixes #2781
Timm Bäder [Sun, 24 May 2020 15:14:18 +0000 (17:14 +0200)]
compare-render: Fix some memory leaks
Emmanuele Bassi [Sun, 24 May 2020 14:20:13 +0000 (15:20 +0100)]
Add a comment for translators
"KP" refers to the numeric keypad, in this context.
Fixes: #2783
Emmanuele Bassi [Fri, 22 May 2020 11:37:37 +0000 (12:37 +0100)]
Use the private GdkKeyEvent.translated_key getter
We can avoid poking directly at the GdkKeyEvent structure, now.
Emmanuele Bassi [Fri, 22 May 2020 11:35:58 +0000 (12:35 +0100)]
Add private accessor for GdkKeyEvent.translated
Avoid accessing the event structure directly, even from within GTK.
Timm Bäder [Sun, 24 May 2020 10:06:07 +0000 (12:06 +0200)]
gl renderer: Improve clipping code
don't render a clip to a texture if the new clip does not intersect with
any of the corners of the currently rounded clip.
Fixes #2770
Timm Bäder [Sun, 24 May 2020 06:31:55 +0000 (08:31 +0200)]
gl renderer: Refactor render_clipped_child
Timm Bäder [Sun, 24 May 2020 06:31:40 +0000 (08:31 +0200)]
gl renderer: Cache whether clips is rectilinear
Timm Bäder [Sat, 23 May 2020 04:37:18 +0000 (06:37 +0200)]
applicationwindow: Simplify measure implementation
We already chain up first thing in this function, so no need to do it
again.
Timm Bäder [Sat, 23 May 2020 04:35:50 +0000 (06:35 +0200)]
window: Remove private _get_shadow_width()
Unused now.
Timm Bäder [Sat, 23 May 2020 04:35:27 +0000 (06:35 +0200)]
applicationwindow: Stop querying shadow width
don't need to do this anymore.
Piotr Drąg [Sun, 24 May 2020 13:07:03 +0000 (15:07 +0200)]
Update Polish translation
Florentina Mușat [Sun, 24 May 2020 10:48:29 +0000 (10:48 +0000)]
Update Romanian translation
Florentina Mușat [Sun, 24 May 2020 10:37:15 +0000 (10:37 +0000)]
Update Romanian translation
Emin Tufan Çetin [Sat, 23 May 2020 08:50:36 +0000 (08:50 +0000)]
Update Turkish translation
Matthias Clasen [Sat, 23 May 2020 00:05:16 +0000 (00:05 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
gtk-demo: Fix the dnd demo drop highlight
See merge request GNOME/gtk!1958
Matthias Clasen [Fri, 22 May 2020 23:46:56 +0000 (23:46 +0000)]
Merge branch 'no-app-menu' into 'master'
Drop the app menu
Closes #2731
See merge request GNOME/gtk!1951
Matthias Clasen [Fri, 22 May 2020 22:52:56 +0000 (18:52 -0400)]
gtk-demo: Fix the dnd demo drop highlight
We want the drop highlight to be around the label,
not around the item containing it, so move the drop
target gesture to the right widget.
Matthias Clasen [Fri, 22 May 2020 22:46:51 +0000 (18:46 -0400)]
docs: Mention app menus in the migration guide
Matthias Clasen [Fri, 22 May 2020 22:19:59 +0000 (22:19 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!1957
Matthias Clasen [Fri, 22 May 2020 21:37:40 +0000 (21:37 +0000)]
Merge branch 'BUG_filechooserbutton_remote_GTK4' into 'master'
FileChooserButton: query 'display name' also for unbookmarked files
Closes #1966
See merge request GNOME/gtk!1725
Matthias Clasen [Fri, 22 May 2020 21:06:30 +0000 (17:06 -0400)]
gtkapplication: Drop app menu support
Drop apis and code related to appmenus from
both GtkApplication and GtkApplicationWindow.
We still keep the menubar support, since it
is needed for system integration on OS X.
Fixes: #2731
Matthias Clasen [Fri, 22 May 2020 21:05:10 +0000 (17:05 -0400)]
print-editor: Stop using appmenu apis
The appmenu-related GtkApplication apis are going away.
Matthias Clasen [Fri, 22 May 2020 20:52:31 +0000 (16:52 -0400)]
inspector: Drop app-menu support
Don't add app menu to the object tree anymore;
this property is going away.
Matthias Clasen [Fri, 22 May 2020 20:36:20 +0000 (16:36 -0400)]
examples: Stop using appmenu apis
The appmenu-related GtkApplication apis are going away.
Matthias Clasen [Fri, 22 May 2020 20:19:49 +0000 (16:19 -0400)]
gtk-demo: Stop using appmenu apis
The appmenu-related GtkApplication apis are going away.
Matthias Clasen [Fri, 22 May 2020 21:19:35 +0000 (17:19 -0400)]
fixed: Change coordinate apis to doubles
We are using floating point for coordinates
everywhere now, so be consistent here.
This commit also changes the implementation of
gtk_fixed_get_child_position to work with
non-translation child transforms.
Matthias Clasen [Fri, 22 May 2020 19:53:18 +0000 (15:53 -0400)]
testsuite: Re-add the sizegroups-evolution reftest
It doesn't seem to cause problems in ci anymore.